package com.cz.ssyx.order.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cz.ssyx.model.order.OrderInfo;
import com.cz.ssyx.vo.order.TimeoutOrderVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 订单 Mapper 接口
 * </p>
 *
 * @author Joker
 * @since 2024-05-04
 */
@Mapper
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    // 查询出超时的订单
    List<TimeoutOrderVo> selectTimeoutOrder();

    // 取消超时的订单
     void processTimeoutOrder();
}
